//
//  Computer.m
//  OC03_继承_初始化方法_遍历构造器
//
//  Created by Scott on 16/4/20.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "Computer.h"

@implementation Computer




#pragma mark - Creating and Init
- (instancetype)initWithBrand:(NSString *)brand price:(float)price color:(NSString *)color comfortableStar:(float)comfortableStar config:(Config *)config size:(NSString *)size weight:(float)weight {
    
    self = [super initWithBrand:brand price:price color:color comfortableStar:comfortableStar];
    
    if (self) {

        _configOfComputer = config;
        _size = size;
        _weight = weight;
        
    }
    return self;

}


+ (instancetype)computerWithBrand:(NSString *)brand price:(float)price color:(NSString *)color comfortableStar:(float)comfortableStar config:(Config *)config size:(NSString *)size weight:(float)weight {
    
    return [[Computer alloc] initWithBrand:brand price:price color:color comfortableStar:comfortableStar config:config size:size weight:weight];
}


@end
